package cn.wolfcode.wolf2w.repository;

import cn.wolfcode.wolf2w.domain.Strategy;
import cn.wolfcode.wolf2w.domain.StrategyCatalog;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

/**
 * MongoDB持久层
 *
 */
public interface StrategyCatalogRepository extends MongoRepository<StrategyCatalog,String> {

    List<StrategyCatalog> findByDestName(String destName);

    /**
     * 根据关联id查询StrategyCatalog(攻略分类)
     * @param destId
     * @return
     */
    List<StrategyCatalog> findByDestId(String destId);
}
